package com.itheima.mapper;

import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentMapper {
    List<Student> findAll(StudentQueryParam param);

    void add(Student student);

    void delete(Integer[] ids);

    void update(Student student);
    @Select("select * from student where id = #{id}")
    Student findById(Integer id);

    void addViolation(Integer id, Short score);
}
